//
//  HNavigationViewController.m
//  SelfDriving
//
//  Created by apple on 15/8/25.
//  Copyright (c) 2015年 apple. All rights reserved.
//

#import "HNavigationViewController.h"

@interface HNavigationViewController ()

@end

@implementation HNavigationViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
     
  
    self.navigationBar.barTintColor = UIColorFromRGB(0xfbfbfb);
 
 
   
    UIColor * color = colorBlack;
    NSDictionary * dict = [NSDictionary dictionaryWithObject:color forKey:UITextAttributeTextColor];
    self.navigationBar.titleTextAttributes = dict;
    
    UITapGestureRecognizer *singleTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(SingleTap:)];
    //双击
    UITapGestureRecognizer *doubleTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(DoubleTap:)];
    
    [doubleTap setNumberOfTapsRequired:2];
    
    [self.view addGestureRecognizer:singleTap];
    
    [self.view addGestureRecognizer:doubleTap];
    [singleTap requireGestureRecognizerToFail:doubleTap];
    
}
-(void)SingleTap:(UITapGestureRecognizer*)recognizer
{
    //处理单击操作
 }

-(void)DoubleTap:(UITapGestureRecognizer*)recognizer
{
    //处理双击操作
    [[NSNotificationCenter defaultCenter ]postNotificationName:@"scollTop" object:nil];

    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
